wayland: Add support for xdg_toplevel.bounds
authorJonas Ådahl <jadahl@gmail.com>
Tue, 4 Aug 2020 14:52:20 +0000 (16:52 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 13 Jun 2022 20:12:55 +0000 (22:12 +0200)
commitde1a8c8d892e66bad916da776f7a6803161ce5a1
tree433fad980d7b1ca6579f48aa5cc7f67f9f152a6a
parent8d72c8ee5ff3e46c12db96e7d9aa8b42d10d795f
wayland: Add support for xdg_toplevel.bounds

The GdkToplevelSize struct already has the concept of "bounds", which
means the largest size a window should reasonably have. It's practically
the equivalent of the monitor the window is intended to be mapped on,
with the "struts" (e.g. panels) cut out. It's used by GTK to use this
information to calculate a default window size that is "lagom" (swedish;
not too large, not too small).
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdksurface-wayland.c
meson.build